<template>
  <div v-bind="$attrs" class="base-panel">
    <div class="base-panel__header">{{title}}</div>
    <div class="base-panel__body">
      <slot></slot>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent, PropType } from 'vue'

export default defineComponent({
  name: 'BasePanel',
  props: {
    title: {
      type: String as PropType<string>,
      default: ''
    },
    one: {
      type: Boolean,
      default: false
    }
  },
  setup() {

  }
})
</script>

<style lang="less" scoped>
.base-panel {
  position: relative;
  width: 100%;
  padding: 22px 20px;
  background: #FFF;
  border-radius: 4px;

  .base-panel__header {
    position: relative;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: bold;
    line-height: 25px;
    color: #181F2A;

  }
}
</style>
